package org.shj.thread.book2.chapter12.active;


public class ActiveObjectFactory {

	public static ActiveObject createActiveObject(){
		Servant servant = new Servant();
		
		ActivationQueue queue = new ActivationQueue();
		SchedulerThread scheduler = new SchedulerThread(queue);
		Proxy proxy = new Proxy(scheduler, servant);
		scheduler.start();
		return proxy;
	}
}
